package com.atguigu.day11.method03.m1;

public class Test2 {
    public static void main(String[] args) {
        Father f = new Father();
        Son s = new Son();
        Father d = new Daughter();

        MyClass my = new MyClass();
        my.method(f);
        my.method(s);
        my.method(d);
    }
}